﻿using System;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            //加(public)
            Compute compute = new Compute();
            compute.Add("胡","哥");
            Console.WriteLine(compute.Add("胡", "哥"));

            //减(private)
            Compute compute1 = new Compute();
            compute1.Minus(9,3);
            Console.WriteLine(compute1.Minus(9,3));

            //乘(internal)
            Compute compute2 = new Compute();
            compute2.Multiply(2.1 , 1.3);
            Console.WriteLine(compute2.Multiply(2.1, 1.3));

            //除(protected)
            Division division = new Division();
            division.Result();
        }
    }
    class Divide
    {
        protected double num1 = 66.6;
        protected double num2 = 33.3;
    }
    class Division : Divide
    {
        public void Result()
        {
            Console.WriteLine(num1 / num2);
        }
    }
}
